//
//  ViewController.m
//  WQDateTool
//
//  Created by Xiang on 2021/5/22.
//

#import "ViewController.h"
#import "WQDateTool.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSDate *nowDate = [NSDate new];
    
    NSString *dateStr = [WQDateTool wqStringFromDate:nowDate];
    
    NSTimeInterval dateTimeInt = [WQDateTool wqTimeIntervalFromString:dateStr];
    
    NSLog(@"nowDate=%@",nowDate);
    NSLog(@"dateStr=%@",dateStr);
    NSLog(@"11-dateTimeInt=%lf",(CGFloat)dateTimeInt);
    NSLog(@"22-dateTimeInt=%lf",(CGFloat)[WQDateTool wqTimeIntervalFromDate:nowDate]);
    NSLog(@"22-nowDate=%@",[WQDateTool wqDateFromTimeInt:dateTimeInt]);
    NSLog(@"33-nowDate=%@",[WQDateTool wqDateFromString:dateStr]);
    NSLog(@"22-dateStr=%@",[WQDateTool wqStringFromTimeInt:dateTimeInt]);
    
}


@end
